package com.design.pattern.builder;

public class PersonDirector {


    //思想 接口不负责具体的构建,由子类去构建完成各个部分 再按照顺序组装起来
    //构造人
    public Person constructPerson(PersonBuilder pb) {
               pb.builderHead()
                .builderBody()
                .builderFoot();
        //最终创建Person
        return pb.BuilderPersion();
    }

}
